package com.zhanghe.mall.web.controller;

import com.zhanghe.mall.pojo.repository.CommodityRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private CommodityRepository commodityRepository;

    @RequestMapping(value = "hello")
    public String hello(){
        return "hello";
    }
    @RequestMapping(value = "teststrs")
    public String hello(String str){
        return str;
    }

}
